package com.qiall.boot.fileservice.data.mapper;

import com.qiall.boot.fileservice.data.eitity.DirectInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DirectMapper {
    void insert(DirectInfo info);

    void update(DirectInfo info);

    void delete(@Param("id") Integer id);

    DirectInfo select(@Param("id") Integer id);

    List<DirectInfo> getByParentIdAndUserId(@Param("parentId") Integer parentId, @Param("userId") Integer userId);

    int selectMaxId();
}
